<template>
	<view class="footer">
		<image v-if="src" :src="src"></image>
		<view v-if="company_title">{{company_title}}</view>
		<view v-if="copyright">{{copyright}}</view>
	</view>
</template>

<script>
	export default {
		name: "SFooter",
		props: {
			src: {
				type: String,
				default: ''
			},
			company_title: {
				type: String,
				default: uni.$s.defaultSettings.company_title
			},
			copyright: {
				type: String,
				default: uni.$s.defaultSettings.copyright
			}
		},
		data() {
			return {}
		}
	}
</script>

<style lang="less" scoped>
	.footer {
		text-align: center;
		font-size: 24rpx;
		color: #b6b9bb;
		padding: 30rpx 20rpx;
		line-height: 40rpx;

		image {
			width: 60rpx;
			height: 60rpx;
			display: block;
			margin: 0 auto 8rpx;
		}
	}
</style>
